package org.sith.taskrunner.temp.tasks.wrappers;

import org.sith.taskrunner.api.task.TaskExecutionResult;
import org.sith.taskrunner.api.task.TaskWrapperResult;


public class MeasuringTaskExecutionTimeResult<O extends TaskExecutionResult> implements TaskWrapperResult<O, TimeIntervalResult> {

    private O originalResult;
    private TimeIntervalResult result;

    @Override
    public O getResult() {
        return originalResult;
    }

    @Override
    public TimeIntervalResult getWrapperResult() {
        return result;
    }

    public void setOriginalResult(O originalResult) {
        this.originalResult = originalResult;
    }

    public void setResult(TimeIntervalResult result) {
        this.result = result;
    }
}
